import request from '@/utils/request'

// 付款申请-列表
export function getPendingList(data) {
  return request({
    url: '/paymentapplicationlistproject',
    method: 'post',
    data,
  })
}

// 付款详情-细项
export function getPendingDetailList(data) {
  return request({
    url: '/paymentapplicationlistprojectdetail',
    method: 'post',
    data,
  })
}

// 付款申请-提交细项
export function submitRequest(data) {
  return request({
    url: '/paymentapplicationlistsuppliersubmit',
    method: 'post',
    data,
  })
}

// 付款审核-列表
export function getCheckList(data) {
  return request({
    url: '/paymentapplicationlistprojectcw',
    method: 'post',
    data,
  })
}

// 付款审核-细项
export function getCheckDetailList(data) {
  return request({
    url: '/paymentapplicationlistprojectdetailcw',
    method: 'post',
    data,
  })
}

// 付款审核-申请按钮
export function confirmRequest(data) {
  return request({
    url: '/paymentapplicationsubmitconfirm',
    method: 'post',
    data,
  })
}

// 付款审核-驳回按钮
export function rejectRequest(data) {
  return request({
    url: '/paymentapplicationreject',
    method: 'post',
    data,
  })
}

// 付款申请列表 (付款申请记录汇总)
export function getRequestBatchList(data) {
  return request({
    url: '/paymentapplicationlist',
    method: 'post',
    data,
  })
}

// 付款查询列表 (付款申请记录明细)
export function getRequestList(data) {
  return request({
    url: '/paymentapplicationdetaillist',
    method: 'post',
    data,
  })
}

// 应付查询列表
export function getPayableList(data) {
  return request({
    url: '/activityexpenseslist1',
    method: 'post',
    data,
  })
}

// 更改付款申请状态
export function checkRequest(data) {
  return request({
    url: '/paymentapplicationedit',
    method: 'post',
    data,
  })
}

// 获取付款申请列表 (财务-订单支付列表)
export function getToPayList(data) {
  return request({
    url: '/paymentapplicationlist',
    method: 'post',
    data,
  })
}

// 提交确认付款
export function confirmPay(data) {
  return request({
    url: '/confirmpaymentadd',
    method: 'post',
    data,
  })
}
// 提交确认付款
export function importFile(data) {
  return request({
    url: '/excelexportproject',
    method: 'post',
    data,
  })
}
export function queryImportFile(data) {
  return request({
    url: '/paymentapplicationdetailexport',
    method: 'post',
    data,
  })
}
export function queryImportFile2(data) {
  return request({
    url: '/activityexpenseslist1export',
    method: 'post',
    data,
  })
}
